<template>
  <div class="xia">
      <van-sticky>
      <At/>
            <ul class="s1">
                <li ><router-link to="/all/erx">全部</router-link></li>
                <li> <router-link to="/all/ery">销量</router-link></li>
                <li ><router-link to="/all/erz">价格</router-link></li>
            </ul> 
            </van-sticky>
            <router-view></router-view>
  </div>
</template>

<script>
import At from "c/cakeC/alltopbar.vue"
// import {getlink} from "@/api/getapi"
export default {
components:{
    At
},
created(){
        // getlink("/list/data").then((ok)=>{
        //      console.log(ok)
             console.log(this.$route.query.typeid)
            // ok.data.listarr.forEach(()=>{
            // if("001"==this.$route.query.typeid){
            //     this.$router.push("/brandzu")
            // }
            // })
            //  this.arr=ok.data.data
        // })
}
}
</script>

<style scoped>
.xia{
    width: 100%;
    margin-top: 0rem;
}
li a{
    color: black;
}
.s1{
    border: 0.01rem solid gainsboro;
    line-height: 0.36rem;
    display: flex;
    justify-content: space-around;
    font-size: 0.14rem;
    text-align: center;
    color: black;
    background-color: white;
    margin-bottom: 0.04rem;
}
.s1 li{
    color: black;
}
.router-link-exact-active{
    color:red;
}
</style>